#coding=utf-8

# class AddrBookEntry(object):
#     # myVersion = '1.0' #静濁数捿
#     # 定义构鿠类
#     def __init__(self, name, phone):
#         self.name = name
#         self.phone = phone
#         print 'Created instance for:', self.name
#     # 定义方法
#     def updatePhone(self, new_phone):
#         self.phone = new_phone
#         print 'Updated phone# for:', self.name
#
#     # 创建实例
# john = AddrBookEntry('John', '123')
# jane = AddrBookEntry('Jane', '456')
#
# print john
# print john.name, john.phone
# print jane.name, jane.phone

# print bool([None])
# # #
# print 1/2
# print 1.0/2.0
# print 5//2
# print 5.0//2
# print 3.0//2.0
# # divmod方法是求商和余数都要的
# print divmod(15,6)
# a = 1,2,3
# print type(a)
# #
# a = ("one","two")
# print a[0]
# b = ("just-one",)
# print b[0]
# c = "just-one",
# print c[0]
#
# d = "just-one"
# print d[0]

# def func(args=[]):
#     args.append(1)
#     print args
# # 默认值是在函数加载的时候指定一块堆内存地址，所以有记忆功能
# func()
# func()
# func()